package Simulator;

import java.util.LinkedList;
import java.util.List;

public class OutputManager {
	private List<Instr> instrList;
	boolean instrEnd;
	
	public OutputManager() {
		instrList = new LinkedList<Instr>();
		instrEnd = false;
	}

	public void addInsruction(Instr instr) {
		instrList.add(instr);
	}

	public List<Instr> getInstrList() {
		return instrList;
	}
	
	public boolean isInstrEnd() {
		return instrEnd;
	}

	public void setInstrEnd(boolean instrEnd) {
		this.instrEnd = instrEnd;
	}

	public void clean() {
		instrList = new LinkedList<Instr>();
		instrEnd = false;
	}
}
